package com.cy.核心编程.thead.basic.priority;

/**
 * setPriority 线程优先级使用
 */
public class MyThread extends Thread{

    public MyThread(String name){
        super.setName(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(super.getName()+"===>"+i);
        }
    }
}
